package m.html.element;

import m.html.element.attr.Size;
import m.html.element.other.InputElement;

public class YearPicker extends InputElement {

	public YearPicker(String field) {
		super("a-date-picker");
		super.setField(field);
		super.setSize(Size.DEFAULT);
		super.setDisabled("false");
		super.setPlaceholder("");
		super.A("picker","year");
		super.A("format","YYYY");
		super.A("valueFormat","YYYY");
		viewElement=Element.tag("div").A("class","input-view-box").E("{{formatter('',"+field+",'yyyy')}}");
	}
}
